package com.berchen.common.result;


public enum ResultEnum {

    ERROR(-999,"系统错误"),
    UPLOAD_PASS_ERROR(-10,"密码错误"),
    UPLOAD_HEADIMG_ERROR(-9,"上传头像失败，请重试"),
    ORDER_ERROR(-8,"排序字段错误，请检查"),
    NO_LOGIN(-7,"还没有登录，请先登录"),
    ACCOUNT_NOT_EXIST(-6,"账号不存在"),
    CODE_EXPIRED(-5,"验证码过期"),
    ACCOUNT_IS_EXIST(-4,"该应用账号已经存在"),
    FILE_TYPE_ERROR(-3,"文件格式错误"),
    DATE_FORMAT_ERROR(-2,"日期格式错误"),
    NO_PARAM(-1,"缺少参数"),
    SUCCESS(0,"操作成功"),
    FAIL(1,"操作失败");


    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
